package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName  string `gorm:"type:varchar(50)"`
	RoleTitle string `gorm:"type:varchar(50)"`
	Uid       int    `gorm:"type:int"`
}

type Order struct {
	gorm.Model
	OrderName string `gorm:"type:varchar(50)"`
}
type RoleOrder struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Oid int `gorm:"type:int"`
}
type Ku struct {
	gorm.Model
	KuName    string `gorm:"type:varchar(50)"`
	KuTitle   string `gorm:"type:varchar(50)"`
	KuAddress string `gorm:"type:varchar(50)"`
}

type Ding struct {
	gorm.Model
	DingName  string `gorm:"type:varchar(50)"`
	DingTypes string `gorm:"type:varchar(50)"`
	DingNum   string `gorm:"type:varchar(50)"`
	DingPrice string `gorm:"type:varchar(50)"`
	Kid       int    `gorm:"type:int"`
}
type KuDingList struct {
	KuId      int
	KuName    string
	KuTitle   string
	KuAddress string
	DingName  string
	DingTypes string
	DingNum   string
	DingPrice string
}
